package com.hey.service.controller;

import com.hey.common.result.MultiResult;
import com.hey.service.entity.User;
import com.hey.service.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping(value = "/user/find/all",produces =  MediaType.APPLICATION_JSON_VALUE)
    public MultiResult findAllUser(){
        System.out.println("服务01被调用了");
        return userService.findAllUser();
    }
}
